// JavaScript Document



$(document).ready(function(){
	var wHeight = $(window).height();
	var wWidth = $(window).width();
	$('input[type=text],textarea').inputToggle();
	//Homepage slideshow
	$('#home-slider').cycle({ 
		fx:    'fade', 
    	delay: -1000,
		speed:1000,
		timeout:3000,
		pager:  '#home-nav-wrapper',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '#home-nav-wrapper li:eq(' + (idx) + ') a';
        }
	});
	
	$('#slider2').cycle({ 
		fx:    'fade', 
    	delay: -1000,
		speed:1000,
		timeout:3000
	});

	$('ul#gallery-list li a.zoomIcon').hover(
		function(){$(this).stop(true,true).animate({'opacity':'1'},'normal');},
		function(){$(this).stop().animate({'opacity':'0'},'normal');}
	);

	$("#gallery-list a[rel^='prettyPhoto']").prettyPhoto({
		social_tools:'',
		slideshow:3000
	});

	//Hover effect sitemap
	$('#sitemap-link a').hover(
			function(){
				$(this).stop(true,true).animate({backgroundColor:'#556117'},'normal');
			},
			function(){
				
				$(this).stop().animate({backgroundColor:'#9ec300'},'normal');
			}
	);
	
});